#include <Ogre.h> 
#include <CEGUI/CEGUI.h> 
#include <list>

#include "include/App.h"
#include "include/GuiEvents.h"

using namespace Ogre;
using namespace Ei;

///////// GUI implementation ////////////////////////////////

GuiEvents::GuiEvents() 
{


}
GuiEvents::~GuiEvents()
{	
	
}



void GuiEvents::updateSpeakerControlsWin()
{
/*    if(mCurrentSpeaker)
    {
    // set the gui to the current speaker   
    App::gui()->mGainBar->setScrollPosition(mCurrentSpeaker->getGain());
    App::gui()->mDistanceBar->setScrollPosition(mCurrentSpeaker->getMaxDistance());
    App::gui()->mSampleWindow->setText((CEGUI::utf8*)(mCurrentSpeaker->getCurrentSample()).c_str());
    App::gui()->mPauseSample->setSelected(mCurrentSpeaker->getPlayState());
    App::gui()->mPlaySample->setSelected(!mCurrentSpeaker->getPlayState());
    Vector3 newPosition= mCurrentSpeaker->getPosition();
    string position = "Speaker Position: X: " + StringConverter::toString(newPosition.x) +
				   ": Y " + StringConverter::toString(newPosition.y) +
				   ": Z " + StringConverter::toString(newPosition.z);
				   
    App::gui()->mPositionWindow->setText((CEGUI::utf8*)position.c_str());
    newPosition= App::sceneMgr()->getSceneNode("Camera")->getWorldPosition();
    position = "Camera Position: X: " + StringConverter::toString(newPosition.x) +
				   ": Y " + StringConverter::toString(newPosition.y) +
				   ": Z " + StringConverter::toString(newPosition.z);
				   
    App::gui()->mCamPositionWindow->setText((CEGUI::utf8*)position.c_str());	
    }*/
}
